Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Working With Time Base Values


GetTimeBaseFlags

The GetTimeBaseFlags function allows your application to obtain the contents of the control flags of a time base.

pascal long GetTimeBaseFlags (TimeBase tb);
tb
Specifies the time base for this operation. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
DESCRIPTION
The GetTimeBaseFlags function returns the control flags of a time base. The following flags are defined (unused flags are set to 0):

loopTimeBase
Indicates whether the time base loops. If this flag is set to 1 and the rate is positive, the time base loops back and restarts from its start time when it reaches its stop time. If this flag is set to 1 and the rate is negative, the time base loops to its stop time. If the flag is set to 0, the movie stops when it reaches the end.
palindromeLoopTimeBase
Indicates whether the time base loops in a palindrome fashion. Palindrome looping causes a time base to move alternately forward and backward. If this flag is set to 1, the time base is palindrome looping.
ERROR CODES
None

SEE ALSO
You can set the control flags of a time base by calling the SetTimeBaseFlags function, which is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996